package CompanyModel;

import School.Student;
import School.Teacher;

public class Simble {

    public static void main(String[] args) {

        Simble applicationcontext = new Simble();

        Student student = applicationcontext.getStudent();
        student.showName("史快乐");


        Teacher teacher = applicationcontext.getTeacher();
        teacher.fun();


    }

    public Student getStudent(){
        return new Student();
    }
    public Teacher getTeacher(){
        return new Teacher();
    }

}
